
	
/****** Object:  Stored Procedure [dbo].tblImportTransactionUpdate    Script Date: Thursday, October 27, 2011 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sptblImportTransactionUpdate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sptblImportTransactionUpdate]
GO

	
	

	
/******************************************************************************
**		File: 
**		Name: [dbo].sptblImportTransactionUpdate
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 27/10/2011 17:41:37
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].sptblImportTransactionUpdate
	@ID uniqueidentifier, 
	@ValueDate datetime, 
	@BuyCurrency varchar(3), 
	@SellCurrency varchar(3), 
	@CusRate decimal(10, 2), 
	@BuyAmount decimal(24, 6), 
	@SellAmount decimal(24, 6), 
	@Branch varchar(3), 
	@Rule1 int, 
	@Rule2 int, 
	@Rule3 int, 
	@Rule4 int, 
	@Rule5 int, 
	@FromFileID uniqueidentifier, 
	@CreatedBy varchar(7), 
	@CustomerName varchar(128), 
	@CreatedDate datetime, 
	@ApprovedDate datetime, 
	@ApprovedBy varchar(7), 
	@Channel varchar(4), 
	@BatchNo varchar(7), 
	@CustMasterNo varchar(7), 
	@CusSeg varchar(3), 
	@Status int, 
	@SlNo varchar(20), 
	@CustCD varchar(9), 
	@TranReferenceNo varchar(20), 
	@Exception varchar(1024), 
	@Command varchar(128) 
AS

UPDATE [dbo].[tblImportTransaction] SET
	[ValueDate] = @ValueDate,
	[BuyCurrency] = @BuyCurrency,
	[SellCurrency] = @SellCurrency,
	[CusRate] = @CusRate,
	[BuyAmount] = @BuyAmount,
	[SellAmount] = @SellAmount,
	[Branch] = @Branch,
	[Rule1] = @Rule1,
	[Rule2] = @Rule2,
	[Rule3] = @Rule3,
	[Rule4] = @Rule4,
	[Rule5] = @Rule5,
	[FromFileID] = @FromFileID,
	[CreatedBy] = @CreatedBy,
	[CustomerName] = @CustomerName,
	[CreatedDate] = @CreatedDate,
	[ApprovedDate] = @ApprovedDate,
	[ApprovedBy] = @ApprovedBy,
	[Channel] = @Channel,
	[BatchNo] = @BatchNo,
	[CustMasterNo] = @CustMasterNo,
	[CusSeg] = @CusSeg,
	[Status] = @Status,
	[SlNo] = @SlNo,
	[CustCD] = @CustCD,
	[TranReferenceNo] = @TranReferenceNo,
	[Exception] = @Exception,
	[Command] = @Command
WHERE
	[ID] = @ID

GO
